<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>添加菜单</title>
</head>
<body>
<div class="layui-fluid">
    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
        <legend id="fieldTitle">添加新菜单</legend>
    </fieldset>
    <form class="layui-form" action="">
        <div class="layui-form-item">
            <label class="layui-form-label">菜单名</label>
            <div class="layui-input-block" style="margin-right: 5%">
                <input type="text" name="newMenuName" id="newMenuName" required  lay-verify="required" placeholder="请输入菜单名" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label" >URL</label>
            <div class="layui-input-block" style="margin-right: 5%">
                <input type="text" name="newMenuUrl" id="newMenuUrl" required  lay-verify="required" placeholder="请输入URL" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">父级菜单</label>
            <div class="layui-input-block" style="margin-right: 5%">
                <select id="newParentMenu" name="newParentMenu" lay-verify="required">
                    <option value="0">父级菜单</option>
                <#list menus as menu>
                    <option value="${menu.id}">${menu.menu}</option>
                </#list>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">权限</label>
            <div class="layui-input-block" style="margin-right: 5%">
                <select id="newMyroot" name="newMyroot" lay-verify="required">
                    <option value="0">无权限</option>
                <#list roots as root>
                    <option value="${root.id}">${root.descript}</option>
                </#list>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <a class="layui-btn" id="addMenuBtn">确认添加</a>
                <a class="layui-btn layui-btn-primary" id="resetMsg">重置</a>
            </div>
        </div>
    </form>
</div>
</body>
</html>